Correctly preserve plugin deps
authorAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 02:35:08 +0000 (19:35 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 02:36:45 +0000 (19:36 -0700)
commit74c8d5716f385ab3637a8bcdd262dd2e1e524fcd
tree29036af05fb08f3e669319770848a27680f6252f
parenta27f18f178242ee7ab84d07701be24e00b134562
Correctly preserve plugin deps

When copying files over from the old root to the new root on a fresh
compilation, care must be taken to preserve the correct plugin/host version of
each dependency. The previous code copied back over at most one library, but
this commit fixes this behavior by copying over all targets necessary for
compilation.
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
tests/test_cargo_cross_compile.rs